package com.wsx.dao.impl;

import org.springframework.orm.hibernate5.support.HibernateDaoSupport;

import com.wsx.bean.User;
import com.wsx.dao.UserDao;

public class UserDaoImpl extends HibernateDaoSupport implements UserDao {

	public User getUserById(int userId) {
		return getHibernateTemplate().get(User.class, userId);
	}

	public void saveUser(User user) {
		getHibernateTemplate().save(user);
	}

}
